﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;

namespace PrjAssessModels.BaseModels
{
    public class MaterialBuryItem : BaseEntity
    {
        [Required]
        [Display(Name = "项目编号")]
        public string PrjId { get; set; }

        [Required]
        [Display(Name = "分项内容")]
        public string ContentName { get; set; }

        [Required]
        [Display(Name = "规格方法")]
        public string Method { get; set; }
        [Required]
        [Display(Name = "数量")]
        public int Number { get; set; }
        [Required]
        [Display(Name = "材料费用")]
        public double MaterialPrice { get; set; }
        [Required]
        [Display(Name = "埋设费用")]
        public double BuryPrice { get; set; }


        [Display(Name = "材料总计")]
        public double MaterialTotal
        {
            get
            {
                return (double)this.Number * this.MaterialPrice;
            }
        }


 
        [Display(Name = "埋设总计")]
        public double BuryTotal
        {
            get
            {
                return this.BuryPrice * (double)this.Number;
            }
        }

        [Display(Name = "参数")]
        public double Para { get; set; }
    }
}
